import http from '@/utils/http.js'
import formHttp from '@/utils/formHttp.js'
// import request from '@/utils/request.js'
/**
 * 公共接口
 * getParentLocation, skuInfo, typeValue, orderDel
 */
// 登录
export const login = params => { return formHttp({ url: '/ndsd/login', method: 'post', data: params }) }
export const logout = params => { return http({ url: '/wms_pc/login', method: 'delete', data: params }) }

// 登陆后获取打印机信息
export const loginPrint = params => { return http({ url: '/wms_pc/login', method: 'get', params }) }
export const workbenchInfo = params => { return http({ url: '/ndsd/workbench', method: 'get', params }) }
// 库区获取
export const ndsdToken = params => { return http({ url: '/ndsd/token', method: 'get', params }) }
export const areaInfo = params => { return http({ url: '/ndsd/workbench', method: 'get', params }) }
// 收货入库接口
export const GETWarehousingTaskInfo = params => { return http({ url: '/wms_pc/warehousing/task/info', method: 'get', params }) }
// 获取扫描信息
export const GETWarehousingTaskScannedInfo = params => { return http({ url: '/wms_pc/warehousing/task/scanned/info', method: 'get', params }) }
// 添加扫描
export const PUTWarehousingTaskScannedInfo = params => { return http({ url: '/wms_pc/warehousing/task/scanned/info', method: 'put', data: params }) }
// 清空容器and清空扫描
export const DELETEWarehousingTaskScannedInfo = params => { return http({ url: '/wms_pc/warehousing/task/scanned/info', method: 'delete', data: params }) }
// 完成扫描
export const POSTWarehousingTaskScannedInfo = params => { return http({ url: '/wms_pc/warehousing/task/scanned/info', method: 'post', data: params }) }
// 获取补货订单信息
export const GETReplenishmentTaskInfo = params => { return http({ url: '/wms_pc/replenishment/task/info', method: 'get', params }) }
// 获取库位
export const GETLocationInfo = params => { return http({ url: '/wms_pc/location/info', method: 'get', params }) }
// 获取工作台对应播种位
export const POSTLocationInfo = params => { return http({ url: '/wms_pc/location/info', method: 'post', data: params }) }
// 提交移库单信息
export const POSTWRMMoveLoc = params => { return http({ url: '/wms_pc/wrm/move/loc', method: 'post', data: params }) }
// 获取移库单信息
export const GetWRMInfo = params => { return http({ url: '/wms_pc/wrm_rep/info', method: 'get', params }) }
// 获取托盘信息
export const GetCIDInfo = params => { return http({ url: '/wms_pc/cid/info', method: 'get', params }) }
// 补货单完成
export const ReplenishmentTaskEnd = params => { return http({ url: '/wms_pc/rep/task/end', method: 'post', data: params }) }
// 补货行完成
export const ReplenishmentTaskLineEnd = params => { return http({ url: '/wms_pc/rep/task/end', method: 'put', data: params }) }
// 跳过补货行
export const ReplenishmentSkipTaskLine = params => { return http({ url: '/wms_pc/rep/task/end', method: 'delete', data: params }) }
// 盘点信息
export const getInventoryTaskInfo = params => { return http({ url: '/wms_pc/inventory/task/info', method: 'get', params }) }
// 获取盘点扫描信息
export const getInventoryScanTaskInfo = params => { return http({ url: '/wms_pc/inventory/task/scan', method: 'get', params }) }
//提交当前容器盘点扫描
export const putInventoryScanTaskInfo = params => { return http({ url: '/wms_pc/inventory/task/scan', method: 'put', data: params }) }
// 结束盘点
export const postInventoryScanTaskInfo = params => { return http({ url: '/wms_pc/inventory/task/scan', method: 'post', data: params }) }
// 获取批次信息
export const GetSkuBatchNoInfo = params => { return http({ url: '/wms_pc/sku/batch/info', method: 'get', params }) }
// 奇门加密接口
export const appPost = (params, param) => { return http({ url: '/wms_app/account/post', method: 'post', params, data: { data: param } }) }
// 获取出库任务
export const GetSomPickingTaskInfo = params => { return http({ url: '/ndsd/picking/task/info', method: 'get', params }) }
// 提交当前出库任务
export const PostSomPickingTaskInfo = params => { return http({ url: '/ndsd/picking/task/info', method: 'post', data: params }) }
// 播种墙托盘绑定
export const BindLocationCID = params => { return http({ url: '/ndsd/picking/bind/sow/cid', method: 'post', data: params }) }
// 播种墙托盘解绑
export const UnBindLocationCID = params => { return http({ url: '/wms_pc/som/picking/bind/cid', method: 'delete', data: params }) }
// 获取亮灯信息
export const PTL_ACTION = params => { return http({ url: '/wms_pc/som/picking/bind/cid', method: 'get', params }) }
// 验证码
export const VerificationCode = params => { return http({ url: '/wms_pc/verification/code', method: 'get', params }) }
// 获取料箱信息
export const GETMaterialBox = params => { return http({ url: '/wms_pc/material/box', method: 'get', params }) }
// 呼叫料箱
export const POSTMaterialBox = params => { return http({ url: '/wms_pc/material/box', method: 'post', data: params }) }
// 获取库区信息
export const GETWHAreaInfo = params => { return http({ url: '/wms_pc/wharea/info', method: 'get', params }) }
// 返回料箱
export const PUTMaterialBox = params => { return http({ url: '/wms_pc/material/box', method: 'put', data: params }) }
// 强制完成补货任务
export const ReplenishmentForceCompletion = params => { return http({ url: '/wms_pc/rep/force/completion', method: 'delete', data: params }) }
// 快速入库
export const postFastWarehousing = params => { return http({ url: '/wms_pc/warehousing/fast', method: 'post', data: params }) }
// 空托上架
export const EmptyCIDBind = params => { return http({ url: '/wms_pc/empty/bind', method: 'post', data: params }) }
// 按数量呼叫空托
export const EmptyCID = params => { return http({ url: '/wms_pc/empty/bind', method: 'get', params }) }
// 理货获取任务接口
export const TallyTask = params => { return http({ url: '/wms_pc/tally/task/info', method: 'get', params }) }

export const TallyTaskPUT = params => { return http({ url: '/wms_pc/tally/task/info', method: 'put', data: params }) }

export const TallyTaskPOST = params => { return http({ url: '/wms_pc/tally/task/info', method: 'post', data: params }) }

export const TallyInbPUT = params => { return http({ url: '/wms_pc/tally/inb/info', method: 'put', data: params }) }



// 潍柴接口，重新

export const GETWarehousingWCTaskInfo = params => { return http({ url: '/wms_pc/warehousing_digit/task/info', method: 'get', params }) }
// 提交扫描任务
export const PUTWarehousingWCTaskInfo = params => { return http({ url: '/wms_pc/warehousing_digit/task/info', method: 'put', data: params }) }
// 绑托上架
export const PostWarehousingWCTaskInfo = params => { return http({ url: '/wms_pc/warehousing_digit/task/info', method: 'post', data: params }) }
// 获取扫描信息
export const GETWarehousingWCTaskScannedInfo = params => { return http({ url: '/wms_pc/warehousing_digit/task/scanned/info', method: 'get', params }) }
// 订单箱操作
export const OrderBoxCall = params => { return http({ url: '/wms_pc/other/box/opt', method: 'get', params }) }

export const MaterialRacksCall = params => { return http({ url: '/wms_pc/other/box/opt', method: 'post', data: params }) }

export const printPullNumber = params => { return http({ url: '/wms_pc/other/box/opt', method: 'put', data: params }) }

// 获取托盘信息潍柴定制
export const GetCIDInfoWC = params => { return http({ url: '/wms_pc/other/cid/info', method: 'get', params }) }

export const GETLocationIdsInfo = params => { return http({ url: '/wms_pc/sps/location/info', method: 'get', params }) }

export const GETLinePatrolPicking = params => { return http({ url: '/wms_pc/line/picking/info', method: 'get', params }) }
export const postLinePatrolPicking = params => { return http({ url: '/wms_pc/line/picking/info', method: 'post', data: params }) }
export const pickingscan = params => { return http({ url: '/ndsd/picking/scan/info', method: 'get', params }) }
export const otherunbind = params => { return http({ url: '/wms_pc/other/cid/unbind', method: 'post', data: params }) }

// 设置站台状态
export const setStaticStatus = params => { return http({ url: '/wms_pc/station/set', method: 'post', data: params }) }
// 设置站台类型
export const setStaticType = params => { return http({ url: '/wms_pc/station/set', method: 'put', data: params }) }

export const getWorkStation = params => { return http({ url: '/wms_pc/workstation/task', method: 'get', params }) }
// 获取紧急要料任务
export const emergentPickTask = params => { return http({ url: '/wms_pc/som/picking/emergent/info', method: 'get', params }) }
// 提交紧急要料任务
export const emergentPickPostTask = params => { return http({ url: '/wms_pc/som/picking/emergent/info', method: 'post', data: params }) }
// 补打拉动条码
export const getpatch = params => { return http({ url: '/wms_pc/som/patch/print/info', method: 'get', params }) }